package com.ruoyi.common.enums.erp;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author YanWenliang
 * @date 2024/12/24 10:14
 * @desciption: 客户级别
 */
@Getter
@AllArgsConstructor
public enum CrmCustomerRankEnum {
    A_PLUS("0", "A"),
    A("1", "A-"),
    B("2", "B"),
    C("3", "C"),
    D("4", "D"),
    E("5", "E");


    private final String code;
    private final String info;

    public static String getInfo(String code){
        for (CrmCustomerRankEnum type : CrmCustomerRankEnum.values()) {
            if (type.code.equals(code)) {
                return type.info;
            }
        }
        return "无";
    }
}
